package com.zjs.utils;

import com.zjs.shiro.AccountProfile;
import org.apache.shiro.SecurityUtils;

public class ShiroUtil {
    //返回用户信息
    public static AccountProfile getProfile() {
        return (AccountProfile) SecurityUtils.getSubject().getPrincipal();
    }

}
